<?php
/**
 * Short Description  
 *
 * Long Description 
 *
 * @category   
 * @package    
 * @subpackage 
 * @copyright 
 * @author     Sandeep Manne<sandeep.manne@costrategix.com>
 */

abstract class Core_System_Abstract
{
	abstract public static function getCommandPath($command);
	
	abstract public static function installPhpExtension($extension);
	
	abstract public static function isCommandExist($command);
	
	public static function run($command)
	{
		self::checkRestrictedCommands($command);
		//TODO run in a new thread using fork
		exec(escapeshellcmd($command), $output);
		return $output;
	}
}